package com.xcc.strategypattern.demo01;

/**
 * @Description: Duck
 * @Author: xiechuang
 * @Date: 2022/5/19
 */
public abstract class Duck {

    /**
     * 呱呱叫
     */
    public void quack() {
        System.out.println("叫声：呱呱叫");
    }

    /**
     * 游泳
     */
    public void swim() {
        System.out.println("游泳");
    }

    /**
     * 外观
     */
     public abstract void display();

    /**
     * 飞翔
     */
    public void fly() {
        System.out.println("飞翔");
    }

}
